package com.qujia.station.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel(description = "入库记录详情表实体类")
@TableName(value ="storage_records_details")
@Data
public class StorageRecordsDetails implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long storageDetailsId;

    @ApiModelProperty(value = "入库记录id")
    private Long storageRecordsId;

    @ApiModelProperty(value = "商品id")
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "商品编码")
    private String commodityCode;

    @ApiModelProperty(value = "商品条码")
    private String barCode;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "非油品分类名称")
    private String categoryName;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "调拨出库数量")
    private Long inventoryOutQuantity;

    @ApiModelProperty(value = "调拨数量")
    private Long inventoryQuantity;

    @ApiModelProperty(value = "单价")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "删除标识 0：未删除,1：删除")
    private Boolean isDeleted;

    @TableField(exist = false)
    @ApiModelProperty("开始时间")
    private String beginTime;

    @TableField(exist = false)
    @ApiModelProperty("结束时间")
    private String endTime;
}